package com.serene.authority.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.serene.authority.admin.entity.vo.BaseEntity;
import lombok.Data;

/**
 * 部门表
 *
 * @author serene
 * @createTime 2020/8/19
 */

@Data
public class MyDept extends BaseEntity {
    private static final long serialVersionUID = 8925514045582235633L;

    /**
     * 部门id
     */
    @TableId(value = "dept_id", type = IdType.AUTO)
    private Integer deptId;

    /**
     * 上级部门id
     */
    private Integer parentId;

    /**
     * 主级列表
     */
    private String ancestors;

    /**
     * 部门名称
     */
    private String deptName;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 状态 1显示  0不显示
     */
    private Integer status;

}
